#! /bin/bash
set -e

bash build_protobuf.sh

if [ ! -d "build" ];then
    mkdir build
fi

if [ ! -d "install" ];then
    mkdir install
fi

cd build

cmake ..
make -j12
cmake --install . --prefix=../install